package com.smsc.headend.connector.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smsc.headend.connector.bo.ConnectionInfo;
import com.smsc.headend.module.request.entity.HdComTraffic;
import com.smsc.headend.module.request.entity.LogComAccess;
import io.netty.channel.Channel;

import java.util.List;

/**
 * @author liangli
 * @date 2020/9/2
 */
public interface LogTerminalAccessService extends IService<LogComAccess> {
    void addAccessLog(Long termId, int type);

    void savePacket(ConnectionInfo connectionInfo, Long now, byte[] packet, Boolean toDevice);

    void saveBytesCount(Channel channel, int bytesNumber, boolean inBoundByte);
}
